package com.vf.admin.client.service;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.AppMingxiChongzhi;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface AppMingxiChongzhiService {

    public List<AppMingxiChongzhi> findList(Integer userid, SplitPageBean splitPage);

    public List<AppMingxiChongzhi> findList(Map<String, Object> params, SplitPageBean splitPage);

    public List<AppMingxiChongzhi> findList1(Map<String, Object> params, SplitPageBean splitPage);

    public Double total(Map<String, Object> params);

    public BigDecimal findListSum(Map<String, Object> params);

    public AppMingxiChongzhi get(Integer id);

    AppMingxiChongzhi findByOrdernum(String ordernum);

    AppMingxiChongzhi findByCustorderno(String custorderno);

    public void save(AppMingxiChongzhi pojo);

    //获取单个用户的充值钻石数量
    public List<AppMingxiChongzhi> selectUserAll(Integer id);

    /**
     * 添加明细
     * @param userid userid
     * @param num 钻石数量
     * @param money 现金
     * @param leixing 购买类型   1、支付宝   2、微信
     * @param ordernum  订单号
     */
    public void addMingxi(Integer userid, BigDecimal num, Integer leixing, BigDecimal money, String ordernum,String mobileSpec);

}
